<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript">
        function on_reg_finger(index){
          var rows = $('#customer_table').datagrid('getRows');
		  $('#deptno').text(rows[index].deptno);
		  $('#deptno_val').val(rows[index].deptno);
		  $('#identifyno').text(rows[index].identifyno);
		  $('#identifyno_val').val(rows[index].identifyno);
		  $('#name').text(rows[index].name);
          $('#reg_cfinger_detail_panel').window('open');
        }
        function on_reg_finger_ui(value,row,index){
          return '<a href="#" class="edtclass" onclick="on_reg_finger('+index+')">注册指纹</a>';
        }
        
        function nodeClicked(node){
  	      new_data_grid('#customer_table',make_customer_table_fields(
  	      	'注册指纹',on_reg_finger_ui),'queryNoFingerCustomersByDept',
  	      	{deptno:node.id},16);
        }
    	$(document).ready(function(){
    		hook_finger_func();
    		$('#sel_customer_dept_pane').panel();
    		$('#depttree').tree({url:'queryDeptTree.action',onClick:nodeClicked,
    		  onLoadError: function(){alert('系统错误，服务器可能已关闭！')}});
     		$('#reg_cfinger_panel').panel({onClose:function(){
          		$("#sel_customer_dept_pane").panel("destroy");
     		}});
     		
     		set_customer_query_action(null,'#customer_table','注册指纹',on_reg_finger_ui,
     			'queryNoFingerCustomersByIdnoOrName',16);
    	});
    </script>
	</head>
	<body>
	
	<s:include value="regcfingerdetail.jsp"></s:include>
    <div id="reg_cfinger_panel" collapsible="false" fit="true" title="注册客户指纹" 
    	resizable="false" collapsible="false" minimizable="false" maximizable="false"
    	closable="true" icon="icon-save" class="jquery_panel">
    	<table width="100%" height="94%">
    		<tr>
    			<td width="260px"><div id="sel_customer_dept_pane" collapsible="false" fit="true" 
    				title="选择客户机构" resizable="false" collapsible="false" minimizable="false" 
    				maximizable="false" noheader="false" closable="false" 
    				style="margin:0px;padding:0px;overflow-y:scroll">
    				<ul id="depttree"></ul></div></td>
    			<td>
    			<table width="100%" height="100%">
    				<tr valign="top" height="20"><td class="param_form_css">
    					<s:include value="/app/query_customer_param.jsp"/></td></tr>
    				<tr valign="top"><td ><table id="customer_table" title="可采集指纹的客户" singleSelect="true" 
    					fit="true" fitColumns="true"></table>
    				</td>
    				</tr>
    			</table>
 				</td>
    		</tr>
    	</table>
    </div>
    
    </body>
</html>